import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './router'
import App from './App.vue'
import store from './store/index'
import ElementUI from 'element-ui'
import VueElementExtends from 'vue-element-extends'
import 'vue-element-extends/lib/index.css'

import 'element-ui/lib/theme-chalk/index.css'
import moment from 'moment'

// import session from './utils/session'
Vue.config.productionTip = false
// 注册到vue原型上
Vue.use(VueRouter)
Vue.use(VueElementExtends)
Vue.use(ElementUI)
Vue.prototype.$moment = moment
const router = new VueRouter({
  routes
})

export default new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
